/**
 * 鼠标事件
 * @author zhouzhanglin
 * @param type 事件类型
 * @param bubbles 是否支持冒泡，默认为true
 * @param localX
 * @param localY
 * @param ctrlKey
 * @param altKey
 * @param shiftKey
 * @param buttonDown
 * @param delta
 * @returns {MouseEvent}
 */
MouseEvent = function(type , bubbles , localX, localY, ctrlKey, altKey,shiftKey, buttonDown, delta)
{
	bubbles = bubbles?bubbles:true ;
	Event.call(this,type,bubbles); //调用父类构造
	this.className="MouseEvent";
	this._delta =delta;
	this._localX=localX?localX:NaN;
	this._localY=localY?localY:NaN;
	this._buttonDown = buttonDown?buttonDown:false ;
	this._ctrlKey= ctrlKey?ctrlKey:false ;
	this._altKey=altKey?altKey:false ;
	this._shiftKey = shiftKey?shiftKey:false ;
	this._stageX = FlashCore.stage._mouseX ;
	this._stageY = FlashCore.stage._mouseY ;
};
FLASH.extend(MouseEvent , Event);

//常量
MouseEvent.CLICK="click";
MouseEvent.DOUBLE_CLICK="doubleClick";
MouseEvent.MOUSE_DOWN="mouseDown";
MouseEvent.MOUSE_MOVE="mouseMove";
MouseEvent.MOUSE_OUT="mouseOut";
MouseEvent.MOUSE_OVER="mouseOver";
MouseEvent.MOUSE_OUT="mouseOut";
MouseEvent.MOUSE_UP="mouseUp";
/**
 * 复制
 */
MouseEvent.prototype.clone = function(){
	return new MouseEvent(this.type);
}; 
